package edu.grupo4.applaboratorio;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MaqDisponible_Activity extends Activity {
	private String[] programas = { "ADOBE", "NETBEANS 2.7.1", "OFFICE 2010", "MATLAB", "ECLIPSE"};
	private ListView lvmaq_disponible;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.maq_disponible_xml);

		lvmaq_disponible =(ListView)findViewById(R.id.listViewProgramas);     
        ArrayAdapter <String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, programas);
        lvmaq_disponible.setAdapter(adapter);
   
	
}
	public void lanzarUbicacion(View view) {
        Intent i = new Intent(this, Ubicacion_Activity.class );
        startActivity(i);
  }  
	public void lanzarInicio(View view) {
        Intent i = new Intent(this, MainActivity.class );
        startActivity(i);
  } 
}
